FROM openjdk:8-jre-slim
MAINTAINER jiangyang

ENV PARAMS="--server.servlet.context-path=/punsh02 --server.port=8080"

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ADD target/auto_punsh.war /auto_punsh.war

ENTRYPOINT ["sh","-c","java -jar /auto_punsh.war $PARAMS"]